package com.team.engine.util;

import javax.servlet.http.HttpSession;

public class WebUtilsNative {

	/**
	 * 检查是否重复提交<br/>
	 * 重复提交是true，不重复是false;
	 * @return
	 */
	public static boolean isCheckToken(String token, HttpSession session){
		String tokenSession = (String) session.getAttribute("token");
		return tokenSession != null && tokenSession.equals(token)?true:false;
	}
}
